<?php
/**
 *
 * @author ninetyseven.
 * @date 2023-03-30 22:21
 */

namespace App\Http\Controllers\Api;

use App\Enum\BannerEnum;
use App\Enum\CodeEnum;
use App\Enum\TravelEnum;
use App\Models\BannerModel;
use App\Services\CommonService;
use Facade\FlareClient\Api;

class BannerController extends ApiBaseController
{

    /**
     * 获取banner列表
     * @author ninetyseven.
     * @date 2023-03-30 22:22
     */
    public function getBannerList()
    {
        try {
//            $commonInter = CommonService::getCommunity();
            $info = (new CommonService())->getBannerList(['is_driver' => 1]);
            return success($info);
        } catch (\Exception $e) {
            return fail(CodeEnum::ERROR, $e->getMessage());
        }
    }
}
